package com.dckeji.shiplock.webapp.service;


import com.dckeji.shiplock.webapp.pojo.Crew;
import com.dckeji.shiplock.webapp.pojo.Owner;
import com.dckeji.shiplock.webapp.pojo.Route;
import com.dckeji.shiplock.webapp.pojo.UserInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: TianWei
 * Date: 2017/8/11
 * Time: 10:09
 * 船主相关业务
 */
public interface IOwnerService {


    /**
     * 船主认证
     *
     * @param owner
     * @return
     */
    int ownerAuthentication(Owner owner);

    int addCrew(Crew crew);

    List<Crew> queryCrewInfos(Integer ownerId);

    int crewAuth(Crew crew);

    UserInfo queryUserInfoByWechat(String openId);

    int deleteCrew(Integer crewId);

    int updateCrew(Crew crew);

    Owner queryOwnerInfoByShipNo(String shipNo);

    UserInfo queryUserInfo(String openId);

    int updatePwd(UserInfo userInfo);


}
